<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: BusPal.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_bus_pal_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">BusPal.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2013-14, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef _BusPal_h_</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define _BusPal_h_</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;host_types.h&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceblfwk.html">blfwk</a></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;{</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html">   48</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_bus_pal.html">BusPal</a></div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;{</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keyword">enum</span></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    {</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45af7002ed146a52ee5ebfb5cbbdffd810b">   54</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45af7002ed146a52ee5ebfb5cbbdffd810b">kResetCount</a> = 20,               </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45a66c5e62ec092e5eae464bab66c33f0b9">   55</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45a66c5e62ec092e5eae464bab66c33f0b9">kResponseOk</a> = 0x01,             </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45aa61cccf9220c6dcb0f9de8e3423d5410">   56</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45aa61cccf9220c6dcb0f9de8e3423d5410">kBulkTransferMax</a> = 4096,        </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45a8c37ceeae90736301eb2e08999e4673a">   57</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45a8c37ceeae90736301eb2e08999e4673a">kMaxResponse</a> = <a class="code" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45aa61cccf9220c6dcb0f9de8e3423d5410">kBulkTransferMax</a> </div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    };</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a3ba8034cd0227c15d1511f486f90d829">   62</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a3ba8034cd0227c15d1511f486f90d829">bus_pal_function_t</a></div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;    {</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        kBusPalFunction_None,</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;        kBusPalFunction_SPI,</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;        kBusPalFunction_I2C,</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        kBusPalFunction_CAN,</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        kBusPalFunction_GPIO_CONFIG,</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        kBusPalFunction_GPIO_SET,</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        kBusPalFunction_FPGA_CLOCK_SET</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    };</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8">   74</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8">spi_clock_polarity_t</a></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    {</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8a3965e27705bde19475884d0dfdfc8c3b">   76</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8a3965e27705bde19475884d0dfdfc8c3b">kSpiClockPolarity_ActiveHigh</a> = 0, </div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8afc3d627662c90410e8b701172650c227">   77</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8afc3d627662c90410e8b701172650c227">kSpiClockPolarity_ActiveLow</a> = 1   </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    };</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6c">   81</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6c">spi_clock_phase_t</a></div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    {</div><div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6cae26a39b485af1153f783d34913959713">   83</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6cae26a39b485af1153f783d34913959713">kSpiClockPhase_FirstEdge</a> =</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;            0, </div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6ca1dc5dce9b6cddaa8bbf040e3c27d3da0">   85</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6ca1dc5dce9b6cddaa8bbf040e3c27d3da0">kSpiClockPhase_SecondEdge</a> =</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            1 </div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    };</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5">   90</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5">spi_shift_direction_t</a></div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    {</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5a0c5f1ef4ac5e33e58596c158a4b0f849">   92</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5a0c5f1ef4ac5e33e58596c158a4b0f849">kSpiMsbFirst</a> = 0, </div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5aaea748b5335c4c043431163582f24876">   93</a></span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5aaea748b5335c4c043431163582f24876">kSpiLsbFirst</a> = 1  </div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    };</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a2ef1166229656afd4aa8ba867c58bf5e">   97</a></span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> uint8_t <a class="code" href="classblfwk_1_1_bus_pal.html#a2ef1166229656afd4aa8ba867c58bf5e">kBusPalDefaultI2cSlaveAddress</a> = 0x10; <span class="comment">// I2C Slave 7-bit address</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structblfwk_1_1_bus_pal_1_1_bus_pal_config_data.html">  101</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structblfwk_1_1_bus_pal_1_1_bus_pal_config_data.html">BusPalConfigData</a></div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    {</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#a3ba8034cd0227c15d1511f486f90d829">bus_pal_function_t</a> <span class="keyword">function</span>;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;        uint32_t spiSpeedKHz;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8">spi_clock_polarity_t</a> spiPolarity;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6c">spi_clock_phase_t</a> spiPhase;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;        <a class="code" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5">spi_shift_direction_t</a> spiDirection;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;        uint8_t i2cAddress;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        uint32_t i2cSpeedKHz;</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        uint32_t canSpeed;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;        uint32_t canTxid;</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;        uint32_t canRxid;</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;        uint8_t gpioPort;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        uint8_t gpioPinNum;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;        uint8_t gpioLevel;</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        uint8_t gpioMux;</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        uint32_t fpgaClockMhz;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <a class="code" href="structblfwk_1_1_bus_pal_1_1_bus_pal_config_data.html">BusPalConfigData</a>(<a class="code" href="classblfwk_1_1_bus_pal.html#a3ba8034cd0227c15d1511f486f90d829">bus_pal_function_t</a> bus = BusPal::kBusPalFunction_None)</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;            : <span class="keyword">function</span>(bus)</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;        {</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;            spiSpeedKHz = 100;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;            spiPolarity = <a class="code" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8afc3d627662c90410e8b701172650c227">BusPal::kSpiClockPolarity_ActiveLow</a>;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;            spiPhase = <a class="code" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6ca1dc5dce9b6cddaa8bbf040e3c27d3da0">BusPal::kSpiClockPhase_SecondEdge</a>;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            spiDirection = <a class="code" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5a0c5f1ef4ac5e33e58596c158a4b0f849">BusPal::kSpiMsbFirst</a>;</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;            i2cAddress = <a class="code" href="classblfwk_1_1_bus_pal.html#a2ef1166229656afd4aa8ba867c58bf5e">BusPal::kBusPalDefaultI2cSlaveAddress</a>;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;            i2cSpeedKHz = 100;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            canSpeed = 4; <span class="comment">// 4: 1M</span></div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;            canTxid = 0x321;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;            canRxid = 0x123;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;            gpioPort = 0;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;            gpioPinNum = 0;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;            gpioLevel = 0;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;            gpioMux = 0;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;            fpgaClockMhz = 0;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;        }</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    };</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <a class="code" href="classblfwk_1_1_bus_pal.html#acc29b1bf0f1ec2f4dad7d31a5aa6e2cf">BusPal</a>(<span class="keywordtype">int</span> fileDescriptor);</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a7f336e1c22ddafd37e9db422fbc7ad20">  143</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a7f336e1c22ddafd37e9db422fbc7ad20">~BusPal</a>(){};</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a549dfebdd85647a8c5669d0ec662fc96">parse</a>(<span class="keyword">const</span> string_vector_t &amp;params, <a class="code" href="structblfwk_1_1_bus_pal_1_1_bus_pal_config_data.html">BusPal::BusPalConfigData</a> &amp;config);</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ab3611813cea66a0708c2c2ec95754fe3">reset</a>();</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#af98ed5db16a2fba8b9ad8fdfd742c6af">resetHardware</a>();</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a1b64499874571024bf75d9bfececc04a">enterBitBangMode</a>();</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a77e8a1884ea5a1f40e7565c505663f6f">enterSpiMode</a>();</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;</div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a97290c3aa76881c095740a9f57e2bc9d">enterCanMode</a>();</div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a65b72744f39f8b0a604fe0f4f90fb48a">enterI2cMode</a>();</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;</div><div class="line"><a name="l00169"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#ae2fb72eb55255579d3fb099043962000">  169</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ae2fb72eb55255579d3fb099043962000">enterUartMode</a>() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#af785e675c5b1874f149dc268e145da6f">  171</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#af785e675c5b1874f149dc268e145da6f">enter1WireMode</a>() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a7805bdfe780f6c7696416a47afee4026">  173</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a7805bdfe780f6c7696416a47afee4026">enterRawWireMode</a>() { <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a42ad5824f8dc0c7d5bb6a92501ce8e8f">rawConfigurePins</a>(uint8_t port, uint8_t pin, uint8_t muxVal);</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#adece616c56efe2245336920be4b2c502">rawSetPins</a>(uint8_t port, uint8_t pin, uint8_t level);</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;</div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a716a6395aee5d2b31d5aaf58a2df832d">  181</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a716a6395aee5d2b31d5aaf58a2df832d">configurePins</a>(uint8_t config = 0) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00183"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#acb4fc83f7b372c63df307b356e302b65">  183</a></span>&#160;    <span class="keyword">virtual</span> uint8_t <a class="code" href="classblfwk_1_1_bus_pal.html#acb4fc83f7b372c63df307b356e302b65">readPins</a>() { <span class="keywordflow">return</span> 0; }</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a23ddaef530ca28ea81f1c3e43c4db8df">setFPGAClock</a>(uint32_t clock);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ac63ff4527060d33016032e6caf11726d">setSpiSpeed</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> speed);</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a696dd33fc4468d380342f14229b5a141">setSpiConfig</a>(<a class="code" href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8">spi_clock_polarity_t</a> polarity, <a class="code" href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6c">spi_clock_phase_t</a> phase, <a class="code" href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5">spi_shift_direction_t</a> direction);</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ae8515cdde9b198bfc76dcb7575ede7ca">setI2cAddress</a>(uint8_t address);</div><div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a2d142d0cc80bec5acd26a9dcbbc423f5">setI2cSpeed</a>(uint32_t speed);</div><div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ad0f5ff03a1c13d2146ac801f6a840085">setCanSpeed</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> speed);</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a694fe5ed76d2845a6674db4014cee059">setCanTxid</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> txid);</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#aaf4ce77db2ac52dc3f701a9d2b256078">setCanRxid</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> rxid);</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;    <span class="keyword">virtual</span> uint8_t *<a class="code" href="classblfwk_1_1_bus_pal.html#adaf957021ced27d998b8c579e7e6de00">response</a>(<span class="keywordtype">size_t</span> byteCount = 1);</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ac9ec4923d2ed53427c424b633d496bc3">write</a>(<span class="keyword">const</span> uint8_t *data, <span class="keywordtype">size_t</span> byteCount = 1);</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a44c8f5c1b4f4c73cffb2f11f9795bb79">read</a>(uint8_t *data, <span class="keywordtype">size_t</span> byteCount);</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a1237da8820c31097e010db2c30cc7238">writeCommand</a>(uint8_t commandByte, <span class="keyword">const</span> <span class="keywordtype">char</span> *expectedResponse);</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;    <span class="keyword">virtual</span> uint8_t <a class="code" href="classblfwk_1_1_bus_pal.html#a1237da8820c31097e010db2c30cc7238">writeCommand</a>(uint8_t commandByte);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    <span class="keyword">virtual</span> uint8_t <a class="code" href="classblfwk_1_1_bus_pal.html#a1237da8820c31097e010db2c30cc7238">writeCommand</a>(uint8_t *command, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length);</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a3baeb183bb6acfb757ae5027953bd392">writeSpi</a>(<span class="keyword">const</span> uint8_t *data, <span class="keywordtype">size_t</span> byteCount = 1);</div><div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a006b75b77607d51aa35dfef9e246b6fc">writeI2c</a>(<span class="keyword">const</span> uint8_t *data, <span class="keywordtype">size_t</span> byteCount = 1);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a0fad8927393a1b94cb8973ec71ab81a5">writeCan</a>(<span class="keyword">const</span> uint8_t *data, <span class="keywordtype">size_t</span> byteCount = 1);</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ac1f992e2476b29372877c07dbb6e68a9">readSpi</a>(uint8_t *data, <span class="keywordtype">size_t</span> byteCount);</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a743674752ab0e01437d0641cc7fcb589">readCan</a>(uint8_t *data, <span class="keywordtype">size_t</span> byteCount);</div><div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classblfwk_1_1_bus_pal.html#ae8ba5003c7fd2a03b04301fc07a9cf9c">readSpiActual</a>(uint8_t *data, <span class="keywordtype">size_t</span> byteCount);</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classblfwk_1_1_bus_pal.html#af1ed47d490765718ff13a7d47b75ba07">readI2c</a>(uint8_t *data, <span class="keywordtype">size_t</span> byteCount);</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a694e8d6998debc6441db0f529f0695b9">buspal_serial_read</a>(uint8_t *buf, <span class="keywordtype">int</span> size, <span class="keywordtype">bool</span> isCommandData = <span class="keyword">false</span>);</div><div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a4fe69d80560f5f5846ad8f60b267c7a8">buspal_serial_write</a>(uint8_t *buf, <span class="keywordtype">int</span> size, <span class="keywordtype">bool</span> isCommandData = <span class="keyword">false</span>);</div><div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_bus_pal.html#aedd9bbc9cfbd8de989a343e347484dc9">flushRX</a>();</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;    <span class="keyword">enum</span> bus_pal_mode_t</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;    {</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;        kBusPalModeBitBang,</div><div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;        kBusPalModeSpi,</div><div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        kBusPalModeI2c,</div><div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        kBusPalModeCan</div><div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;    };</div><div class="line"><a name="l00268"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a64ec858c7bff63cead7e75ed7b85474b">  268</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classblfwk_1_1_bus_pal.html#a64ec858c7bff63cead7e75ed7b85474b">m_fileDescriptor</a>;                   </div><div class="line"><a name="l00269"></a><span class="lineno"><a class="line" href="classblfwk_1_1_bus_pal.html#a5e8e7c2242731cf665f4c4f3e0fd8738">  269</a></span>&#160;    uint8_t <a class="code" href="classblfwk_1_1_bus_pal.html#a5e8e7c2242731cf665f4c4f3e0fd8738">m_responseBuffer</a>[<a class="code" href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45a8c37ceeae90736301eb2e08999e4673a">kMaxResponse</a>]; </div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    bus_pal_mode_t m_mode;</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_spiWriteByteCount;</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_canWriteByteCount;</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> m_canFirstReadDelay;</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;};</div><div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;</div><div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;} <span class="comment">// namespace blfwk</span></div><div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;</div><div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="preprocessor">#endif // _BusPal_h_</span></div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<span class="comment">// EOF</span></div><div class="ttc" id="classblfwk_1_1_bus_pal_html_a694fe5ed76d2845a6674db4014cee059"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a694fe5ed76d2845a6674db4014cee059">blfwk::BusPal::setCanTxid</a></div><div class="ttdeci">virtual bool setCanTxid(unsigned int txid)</div><div class="ttdoc">Set CAN txid. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:439</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a87f2962a35c81c8676f9138f2135ebc5"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5">blfwk::BusPal::spi_shift_direction_t</a></div><div class="ttdeci">spi_shift_direction_t</div><div class="ttdoc">SPI data shifter direction options. </div><div class="ttdef"><b>Definition:</b> BusPal.h:90</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a1b64499874571024bf75d9bfececc04a"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a1b64499874571024bf75d9bfececc04a">blfwk::BusPal::enterBitBangMode</a></div><div class="ttdeci">virtual bool enterBitBangMode()</div><div class="ttdoc">Enter bit bang (binary scripting) mode. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:499</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html">blfwk::BusPal</a></div><div class="ttdoc">Interface with the BusPal. </div><div class="ttdef"><b>Definition:</b> BusPal.h:48</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a5e8e7c2242731cf665f4c4f3e0fd8738"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a5e8e7c2242731cf665f4c4f3e0fd8738">blfwk::BusPal::m_responseBuffer</a></div><div class="ttdeci">uint8_t m_responseBuffer[kMaxResponse]</div><div class="ttdoc">Command response buffer. </div><div class="ttdef"><b>Definition:</b> BusPal.h:269</div></div>
<div class="ttc" id="namespaceblfwk_html"><div class="ttname"><a href="namespaceblfwk.html">blfwk</a></div><div class="ttdef"><b>Definition:</b> BlfwkErrors.h:16</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a1237da8820c31097e010db2c30cc7238"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a1237da8820c31097e010db2c30cc7238">blfwk::BusPal::writeCommand</a></div><div class="ttdeci">virtual bool writeCommand(uint8_t commandByte, const char *expectedResponse)</div><div class="ttdoc">Write command, check string response. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:522</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a7805bdfe780f6c7696416a47afee4026"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a7805bdfe780f6c7696416a47afee4026">blfwk::BusPal::enterRawWireMode</a></div><div class="ttdeci">virtual bool enterRawWireMode()</div><div class="ttdoc">Enter raw wire mode. Not currently supported for bus pal. </div><div class="ttdef"><b>Definition:</b> BusPal.h:173</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a032b21d6ebbd41de467492fb047bfff8afc3d627662c90410e8b701172650c227"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8afc3d627662c90410e8b701172650c227">blfwk::BusPal::kSpiClockPolarity_ActiveLow</a></div><div class="ttdoc">Active-low SPI clock (idles high). </div><div class="ttdef"><b>Definition:</b> BusPal.h:77</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_aa43dd896e2acb8e1955f3b13334c6b45a66c5e62ec092e5eae464bab66c33f0b9"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45a66c5e62ec092e5eae464bab66c33f0b9">blfwk::BusPal::kResponseOk</a></div><div class="ttdoc">Successful command response. </div><div class="ttdef"><b>Definition:</b> BusPal.h:55</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a2d142d0cc80bec5acd26a9dcbbc423f5"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a2d142d0cc80bec5acd26a9dcbbc423f5">blfwk::BusPal::setI2cSpeed</a></div><div class="ttdeci">virtual bool setI2cSpeed(uint32_t speed)</div><div class="ttdoc">Set I2c speed. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:694</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ac63ff4527060d33016032e6caf11726d"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ac63ff4527060d33016032e6caf11726d">blfwk::BusPal::setSpiSpeed</a></div><div class="ttdeci">virtual bool setSpiSpeed(unsigned int speed)</div><div class="ttdoc">Set SPI speed. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:662</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a006b75b77607d51aa35dfef9e246b6fc"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a006b75b77607d51aa35dfef9e246b6fc">blfwk::BusPal::writeI2c</a></div><div class="ttdeci">virtual bool writeI2c(const uint8_t *data, size_t byteCount=1)</div><div class="ttdoc">write via I2c </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:1014</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a4fe69d80560f5f5846ad8f60b267c7a8"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a4fe69d80560f5f5846ad8f60b267c7a8">blfwk::BusPal::buspal_serial_write</a></div><div class="ttdeci">int buspal_serial_write(uint8_t *buf, int size, bool isCommandData=false)</div><div class="ttdoc">Overriden serial_write for logging. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:1148</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_af1ed47d490765718ff13a7d47b75ba07"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#af1ed47d490765718ff13a7d47b75ba07">blfwk::BusPal::readI2c</a></div><div class="ttdeci">virtual int readI2c(uint8_t *data, size_t byteCount)</div><div class="ttdoc">read via I2c </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:1053</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ac9ec4923d2ed53427c424b633d496bc3"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ac9ec4923d2ed53427c424b633d496bc3">blfwk::BusPal::write</a></div><div class="ttdeci">virtual bool write(const uint8_t *data, size_t byteCount=1)</div><div class="ttdoc">writes the data over the previously selected interface </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:757</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a87f2962a35c81c8676f9138f2135ebc5aaea748b5335c4c043431163582f24876"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5aaea748b5335c4c043431163582f24876">blfwk::BusPal::kSpiLsbFirst</a></div><div class="ttdoc">Data transfers start with least significant bit. </div><div class="ttdef"><b>Definition:</b> BusPal.h:93</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_aa43dd896e2acb8e1955f3b13334c6b45a8c37ceeae90736301eb2e08999e4673a"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45a8c37ceeae90736301eb2e08999e4673a">blfwk::BusPal::kMaxResponse</a></div><div class="ttdef"><b>Definition:</b> BusPal.h:57</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ae0fcbb292f846c40a93219e55d92bc6cae26a39b485af1153f783d34913959713"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6cae26a39b485af1153f783d34913959713">blfwk::BusPal::kSpiClockPhase_FirstEdge</a></div><div class="ttdoc">First edge on SPSCK occurs at the middle of the first cycle of a data transfer. </div><div class="ttdef"><b>Definition:</b> BusPal.h:83</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a64ec858c7bff63cead7e75ed7b85474b"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a64ec858c7bff63cead7e75ed7b85474b">blfwk::BusPal::m_fileDescriptor</a></div><div class="ttdeci">int m_fileDescriptor</div><div class="ttdoc">PC COM port file descriptor. </div><div class="ttdef"><b>Definition:</b> BusPal.h:268</div></div>
<div class="ttc" id="structblfwk_1_1_bus_pal_1_1_bus_pal_config_data_html"><div class="ttname"><a href="structblfwk_1_1_bus_pal_1_1_bus_pal_config_data.html">blfwk::BusPal::BusPalConfigData</a></div><div class="ttdoc">BusPal configuration data. </div><div class="ttdef"><b>Definition:</b> BusPal.h:101</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a42ad5824f8dc0c7d5bb6a92501ce8e8f"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a42ad5824f8dc0c7d5bb6a92501ce8e8f">blfwk::BusPal::rawConfigurePins</a></div><div class="ttdeci">virtual bool rawConfigurePins(uint8_t port, uint8_t pin, uint8_t muxVal)</div><div class="ttdoc">Raw configure pins. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:709</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ae8ba5003c7fd2a03b04301fc07a9cf9c"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ae8ba5003c7fd2a03b04301fc07a9cf9c">blfwk::BusPal::readSpiActual</a></div><div class="ttdeci">int readSpiActual(uint8_t *data, size_t byteCount)</div><div class="ttdoc">worker function to actually read SPI data </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:856</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a97290c3aa76881c095740a9f57e2bc9d"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a97290c3aa76881c095740a9f57e2bc9d">blfwk::BusPal::enterCanMode</a></div><div class="ttdeci">virtual bool enterCanMode()</div><div class="ttdoc">Enter Can mode. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:426</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_aaf4ce77db2ac52dc3f701a9d2b256078"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#aaf4ce77db2ac52dc3f701a9d2b256078">blfwk::BusPal::setCanRxid</a></div><div class="ttdeci">virtual bool setCanRxid(unsigned int rxid)</div><div class="ttdoc">Set CAN rxid. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:455</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a3ba8034cd0227c15d1511f486f90d829"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a3ba8034cd0227c15d1511f486f90d829">blfwk::BusPal::bus_pal_function_t</a></div><div class="ttdeci">bus_pal_function_t</div><div class="ttdoc">BusPal Transports. </div><div class="ttdef"><b>Definition:</b> BusPal.h:62</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a23ddaef530ca28ea81f1c3e43c4db8df"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a23ddaef530ca28ea81f1c3e43c4db8df">blfwk::BusPal::setFPGAClock</a></div><div class="ttdeci">virtual bool setFPGAClock(uint32_t clock)</div><div class="ttdoc">Sets the FPGA clock, clock is in hertz. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:741</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ac1f992e2476b29372877c07dbb6e68a9"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ac1f992e2476b29372877c07dbb6e68a9">blfwk::BusPal::readSpi</a></div><div class="ttdeci">virtual int readSpi(uint8_t *data, size_t byteCount)</div><div class="ttdoc">read via Spi </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:850</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_aa43dd896e2acb8e1955f3b13334c6b45af7002ed146a52ee5ebfb5cbbdffd810b"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45af7002ed146a52ee5ebfb5cbbdffd810b">blfwk::BusPal::kResetCount</a></div><div class="ttdoc">Max number of nulls to send to enter BBIO mode. </div><div class="ttdef"><b>Definition:</b> BusPal.h:54</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_acb4fc83f7b372c63df307b356e302b65"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#acb4fc83f7b372c63df307b356e302b65">blfwk::BusPal::readPins</a></div><div class="ttdeci">virtual uint8_t readPins()</div><div class="ttdoc">Read pins. </div><div class="ttdef"><b>Definition:</b> BusPal.h:183</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a65b72744f39f8b0a604fe0f4f90fb48a"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a65b72744f39f8b0a604fe0f4f90fb48a">blfwk::BusPal::enterI2cMode</a></div><div class="ttdeci">virtual bool enterI2cMode()</div><div class="ttdoc">Enter I2c mode. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:486</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_af785e675c5b1874f149dc268e145da6f"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#af785e675c5b1874f149dc268e145da6f">blfwk::BusPal::enter1WireMode</a></div><div class="ttdeci">virtual bool enter1WireMode()</div><div class="ttdoc">Enter 1wire mode. Not currently supported for bus pal. </div><div class="ttdef"><b>Definition:</b> BusPal.h:171</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a77e8a1884ea5a1f40e7565c505663f6f"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a77e8a1884ea5a1f40e7565c505663f6f">blfwk::BusPal::enterSpiMode</a></div><div class="ttdeci">virtual bool enterSpiMode()</div><div class="ttdoc">Enter Spi mode. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:414</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a7f336e1c22ddafd37e9db422fbc7ad20"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a7f336e1c22ddafd37e9db422fbc7ad20">blfwk::BusPal::~BusPal</a></div><div class="ttdeci">virtual ~BusPal()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> BusPal.h:143</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_aedd9bbc9cfbd8de989a343e347484dc9"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#aedd9bbc9cfbd8de989a343e347484dc9">blfwk::BusPal::flushRX</a></div><div class="ttdeci">void flushRX()</div><div class="ttdoc">Flushes the serial port of any RX data. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:258</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a694e8d6998debc6441db0f529f0695b9"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a694e8d6998debc6441db0f529f0695b9">blfwk::BusPal::buspal_serial_read</a></div><div class="ttdeci">int buspal_serial_read(uint8_t *buf, int size, bool isCommandData=false)</div><div class="ttdoc">Overriden serial_read for logging. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:1103</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_adece616c56efe2245336920be4b2c502"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#adece616c56efe2245336920be4b2c502">blfwk::BusPal::rawSetPins</a></div><div class="ttdeci">virtual bool rawSetPins(uint8_t port, uint8_t pin, uint8_t level)</div><div class="ttdoc">Set GPIO pin. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:725</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a549dfebdd85647a8c5669d0ec662fc96"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a549dfebdd85647a8c5669d0ec662fc96">blfwk::BusPal::parse</a></div><div class="ttdeci">static bool parse(const string_vector_t &amp;params, BusPal::BusPalConfigData &amp;config)</div><div class="ttdoc">parse the passed in options into the config structure. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:283</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a032b21d6ebbd41de467492fb047bfff8"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8">blfwk::BusPal::spi_clock_polarity_t</a></div><div class="ttdeci">spi_clock_polarity_t</div><div class="ttdoc">SPI clock polarity configuration. </div><div class="ttdef"><b>Definition:</b> BusPal.h:74</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a716a6395aee5d2b31d5aaf58a2df832d"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a716a6395aee5d2b31d5aaf58a2df832d">blfwk::BusPal::configurePins</a></div><div class="ttdeci">virtual bool configurePins(uint8_t config=0)</div><div class="ttdoc">Configure pins. </div><div class="ttdef"><b>Definition:</b> BusPal.h:181</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ae0fcbb292f846c40a93219e55d92bc6c"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6c">blfwk::BusPal::spi_clock_phase_t</a></div><div class="ttdeci">spi_clock_phase_t</div><div class="ttdoc">SPI clock phase configuration. </div><div class="ttdef"><b>Definition:</b> BusPal.h:81</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ab3611813cea66a0708c2c2ec95754fe3"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ab3611813cea66a0708c2c2ec95754fe3">blfwk::BusPal::reset</a></div><div class="ttdeci">virtual bool reset()</div><div class="ttdoc">Reset to bit bang mode from another peripheral mode. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:616</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a743674752ab0e01437d0641cc7fcb589"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a743674752ab0e01437d0641cc7fcb589">blfwk::BusPal::readCan</a></div><div class="ttdeci">virtual int readCan(uint8_t *data, size_t byteCount)</div><div class="ttdoc">read via Can </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:953</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a44c8f5c1b4f4c73cffb2f11f9795bb79"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a44c8f5c1b4f4c73cffb2f11f9795bb79">blfwk::BusPal::read</a></div><div class="ttdeci">virtual int read(uint8_t *data, size_t byteCount)</div><div class="ttdoc">Read data. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:773</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a696dd33fc4468d380342f14229b5a141"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a696dd33fc4468d380342f14229b5a141">blfwk::BusPal::setSpiConfig</a></div><div class="ttdeci">virtual bool setSpiConfig(spi_clock_polarity_t polarity, spi_clock_phase_t phase, spi_shift_direction_t direction)</div><div class="ttdoc">Sets the SPI configuration. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:644</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_aa43dd896e2acb8e1955f3b13334c6b45aa61cccf9220c6dcb0f9de8e3423d5410"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#aa43dd896e2acb8e1955f3b13334c6b45aa61cccf9220c6dcb0f9de8e3423d5410">blfwk::BusPal::kBulkTransferMax</a></div><div class="ttdoc">Max number of bytes per bulk transfer. </div><div class="ttdef"><b>Definition:</b> BusPal.h:56</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a0fad8927393a1b94cb8973ec71ab81a5"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a0fad8927393a1b94cb8973ec71ab81a5">blfwk::BusPal::writeCan</a></div><div class="ttdeci">virtual bool writeCan(const uint8_t *data, size_t byteCount=1)</div><div class="ttdoc">write via Can </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:907</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a3baeb183bb6acfb757ae5027953bd392"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a3baeb183bb6acfb757ae5027953bd392">blfwk::BusPal::writeSpi</a></div><div class="ttdeci">virtual bool writeSpi(const uint8_t *data, size_t byteCount=1)</div><div class="ttdoc">write via Spi </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:808</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a87f2962a35c81c8676f9138f2135ebc5a0c5f1ef4ac5e33e58596c158a4b0f849"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a87f2962a35c81c8676f9138f2135ebc5a0c5f1ef4ac5e33e58596c158a4b0f849">blfwk::BusPal::kSpiMsbFirst</a></div><div class="ttdoc">Data transfers start with most significant bit. </div><div class="ttdef"><b>Definition:</b> BusPal.h:92</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ae0fcbb292f846c40a93219e55d92bc6ca1dc5dce9b6cddaa8bbf040e3c27d3da0"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ae0fcbb292f846c40a93219e55d92bc6ca1dc5dce9b6cddaa8bbf040e3c27d3da0">blfwk::BusPal::kSpiClockPhase_SecondEdge</a></div><div class="ttdoc">First edge on SPSCK occurs at the start of the first cycle of a data transfer. </div><div class="ttdef"><b>Definition:</b> BusPal.h:85</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_af98ed5db16a2fba8b9ad8fdfd742c6af"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#af98ed5db16a2fba8b9ad8fdfd742c6af">blfwk::BusPal::resetHardware</a></div><div class="ttdeci">virtual bool resetHardware()</div><div class="ttdoc">Reset the bus pal, comes up in terminal mode. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:604</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_adaf957021ced27d998b8c579e7e6de00"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#adaf957021ced27d998b8c579e7e6de00">blfwk::BusPal::response</a></div><div class="ttdeci">virtual uint8_t * response(size_t byteCount=1)</div><div class="ttdoc">Read response. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:581</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ae2fb72eb55255579d3fb099043962000"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ae2fb72eb55255579d3fb099043962000">blfwk::BusPal::enterUartMode</a></div><div class="ttdeci">virtual bool enterUartMode()</div><div class="ttdoc">Enter Uart mode. Not currently supported for bus pal. </div><div class="ttdef"><b>Definition:</b> BusPal.h:169</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a032b21d6ebbd41de467492fb047bfff8a3965e27705bde19475884d0dfdfc8c3b"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a032b21d6ebbd41de467492fb047bfff8a3965e27705bde19475884d0dfdfc8c3b">blfwk::BusPal::kSpiClockPolarity_ActiveHigh</a></div><div class="ttdoc">Active-high SPI clock (idles low). </div><div class="ttdef"><b>Definition:</b> BusPal.h:76</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ad0f5ff03a1c13d2146ac801f6a840085"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ad0f5ff03a1c13d2146ac801f6a840085">blfwk::BusPal::setCanSpeed</a></div><div class="ttdeci">virtual bool setCanSpeed(unsigned int speed)</div><div class="ttdoc">Set CAN speed. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:471</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_ae8515cdde9b198bfc76dcb7575ede7ca"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#ae8515cdde9b198bfc76dcb7575ede7ca">blfwk::BusPal::setI2cAddress</a></div><div class="ttdeci">virtual bool setI2cAddress(uint8_t address)</div><div class="ttdoc">Set I2c address. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:678</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_acc29b1bf0f1ec2f4dad7d31a5aa6e2cf"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#acc29b1bf0f1ec2f4dad7d31a5aa6e2cf">blfwk::BusPal::BusPal</a></div><div class="ttdeci">BusPal(int fileDescriptor)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> BusPal.cpp:275</div></div>
<div class="ttc" id="classblfwk_1_1_bus_pal_html_a2ef1166229656afd4aa8ba867c58bf5e"><div class="ttname"><a href="classblfwk_1_1_bus_pal.html#a2ef1166229656afd4aa8ba867c58bf5e">blfwk::BusPal::kBusPalDefaultI2cSlaveAddress</a></div><div class="ttdeci">static const uint8_t kBusPalDefaultI2cSlaveAddress</div><div class="ttdoc">I2C default address. </div><div class="ttdef"><b>Definition:</b> BusPal.h:97</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80fb9e53c172a775cab667063273d0e3.html">blfwk</a></li><li class="navelem"><b>BusPal.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:49 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
